package main;

import javax.swing.JOptionPane;

import bluetooth.BlueService;
import components.SysTray;

/**
 * 程序入口
 * @author cccssw
 * @since 2010.2.10
 */
public class ServerApp {
	
	public static void main(String[] args){
		BlueService bs=new BlueService();
		
		if(bs.initialBluetooth()){
			new SysTray().show();
			bs.startService();
		}
		else{
			JOptionPane.showMessageDialog(null,"failed to initialize bluetooth.\n"
                                + "Please open your system's bluetooth service first.");
		}
	}
}
